package Book;

public class BookList {
    private Book [] books;
    private int usedSize;

    public BookList() {  //初始化
        this.books = new Book[12];
        this.books[0] = new Book("三国演义","罗贯中","15.0元",false);
        this.books[1] = new Book("水浒传","施耐庵","9.9",true);
        this.books[2] = new Book("红楼梦","曹雪芹","58.8",false);
        this.usedSize = 3;
    }

    public int getUsedSize() {
        return usedSize;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
    public Book getBook(int pos) {
        return books[pos];
    }
}
